package com.xh.bussiness.exam.service;



import com.xh.bussiness.exam.bean.dto.ExerciseDto;
import com.xh.bussiness.exam.bean.dto.StudentExerciseDto;
import com.xh.bussiness.exam.bean.request.StudentExerciseRequest;
import com.xh.bussiness.exam.model.StudentExercise;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课堂练习学生记录表 服务类
 * </p>
 *
 * @author Pitt Cheung
 * @since 2021-08-26
 */
public interface IStudentExerciseService extends IBaseService<StudentExercise> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryStudentExercisePage(XhPage page, StudentExerciseRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public List queryStudentExercise(StudentExerciseRequest bean);

    boolean marking(StudentExerciseRequest bean);

    boolean addStudentExercise(StudentExerciseRequest bean);

    ExerciseDto queryStudentExerciseList(StudentExerciseRequest bean);

    List<StudentExerciseDto> queryStudentExercises(StudentExerciseRequest bean);

    boolean updateComment(StudentExercise studentExercise);

    List<StudentExercise> selectTeacherIdByStudentId(String studentId);
}
